package com.nuoniu.sibanyun.mapper.erp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.erp.ErpProjectPlan;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 项目计划 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-24
 */
public interface ErpProjectPlanMapper extends BaseMapper<ErpProjectPlan> {

    /**
     * 获取子级数量
     * @author 小啊刚
     * @date 2021-10-24
     */
    @Select("select count(1) from prj_project_plan where parent_id=#{id}")
    Integer getCountByParentId(Long id);
}
